package indv.Cning.cfengsecuritydemo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author Cfeng
 * @date 2022/7/24
 * JWT user,JWT验证方式实现后端无状态化，不需要存储token信息在服务端
 */

@Accessors(chain = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class JwtUser implements Serializable {
    private static final long serialVersionUID = -1099124301682839110L;

    private String userName;

    private String userPwd;

    private List<String> authorities; //JWT存储的权限信息，这里直接以String类型
}
